package com.myapp.api.service;

import com.myapp.api.entity.Admin;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface AdminService {
    public List<Admin> getAdmins();

    public Admin getAdminById(@Param("id") Integer id);

    public Admin getAdminByAccount(@Param("account") String account);

    public Integer getAdminByOneAccount(@Param("account") String account);

    public int addAdmin(@Param("record") Admin record);

    public int deleteAdminById(@Param("id") Integer id);

    public int putAdmin(@Param("record") Admin record);
}
